package com.hyxt.consumer;

import com.alibaba.dubbo.config.annotation.Reference;
import com.hyxt.dao.RedisServiceDAO;
import org.springframework.stereotype.Component;

/**
 * @author shenp
 * @version v1.0
 * @Description
 * @Date: Create in 17:23 2017/11/27
 * @Modifide By:
 **/
@Component
public class RedisServerAdapter {

    @Reference(version = "1.0.0")
    RedisServiceDAO redisServiceDAO;
    public void setString(){
        redisServiceDAO.sendMessage("t809Message","shenp");
        System.out.println("shenp");
        redisServiceDAO.sendMessage("termianalManager","测试");
//        redisServiceDAO.sendMessage("termianalReMessage","测试");
//        redisServiceDAO.sendMessage("t809Manager","测试");
//        redisServiceDAO.sendMessage("t809ReMessage","测试");
        redisServiceDAO.setString("shenp","123",0);
        System.out.print(redisServiceDAO.getString("shenp",0));
    }

}
